<?php
$yhendus=new  mysqli ("localhost", "if13", "ifikad", "if13_vainojo");
if(isSet($_REQUEST["eesnimi"])){
	$kask=$yhendus->prepare("INSERT INTO pidu (eesnimi, perenimi, email)
	VALUES (?, ?, ?)");
	$kask->bind_param ("sss",$_REQUEST["eesnimi"], $_REQUEST["perenimi"], $_REQUEST["email"]);
	$kask->execute();
	header("Location: $_SERVER[PHP_SELF]");
  
}
$yhendus->close();
	